package com.feifei.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class CommentVO {
    private Integer id;

    private String username;

    private Integer product_id;

    private String content;

    private Date create_time;


    public CommentVO() {
    }

    public CommentVO(Integer id, String username, Integer product_id, String content, Date create_time) {
        this.id = id;
        this.username = username;
        this.product_id = product_id;
        this.content = content;
        this.create_time = create_time;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return product_id
     */
    public Integer getProduct_id() {
        return product_id;
    }

    /**
     * 设置
     * @param product_id
     */
    public void setProduct_id(Integer product_id) {
        this.product_id = product_id;
    }

    /**
     * 获取
     * @return content
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置
     * @param content
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取
     * @return create_time
     */
    public Date getCreate_time() {
        return create_time;
    }

    /**
     * 设置
     * @param create_time
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String toString() {
        return "CommentVO{id = " + id + ", username = " + username + ", product_id = " + product_id + ", content = " + content + ", create_time = " + create_time + "}";
    }
}
